package cn.pinming.entity;

import lombok.Data;

import javax.persistence.Column;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.util.Date;

/**
 * @author wuwanggao@souche.com
 * @version 1.0
 * @description 抽象数据类
 * @date 2019-04-10 01:00
 */
@Data
public abstract class BaseEntity implements Serializable {

    public static final Integer DEFAULT_DEL_FLAG = 0;
    public static final Integer DELETE_DEL_FLAG = 1;

    @Column(name = "update_time", insertable = false, updatable = false)
    protected LocalDateTime updateTime;

    @Column(name = "create_date", insertable = false, updatable = false)
    protected LocalDateTime createTime;

    @Column(name = "remark")
    protected String remark;

    @Column(name = "deleted")
    protected Boolean deleted;

}
